/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.ekuma.epos.swing.calc;

/**
 *
 * @author Administrator
 */
public class SqrtCommand extends AbstractCommand{

    @Override
    public double calc(double inData) {
        return java.lang.Math.sqrt(inData);
    }

    @Override
    public String getCommStyle() {
        return COMM_SQRT;
    }

    @Override
    public boolean isSuportReCalc() {
        return true;
    }

     @Override
    public CalcLogic clone() {
       SqrtCommand  temp=new SqrtCommand();
       return temp;
    }
}
